<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>

<script type="text/javascript">
	function check(form) {
		if (document.loginfrom.AdminName.value == "") {
			alert("请输入管理员名");
			document.loginfrom.AdminName.focus();
			return false;
		}
		if(document.loginfrom.Password.value==""){
		alter("请输入密码");
		document.loginfrom.Password.focus();
		return false;
		}
	}
	
	window.onload=function(){
	document.getElementById("AdminName").focus();
	document.getElementById("AdminName").value="";
	document.getElementById("Password").value="";
	}
	
	
</script>
<base href="<%=basePath%>">

<title>My JSP 'login.jsp' starting page</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

</head>

<body background="Image/timg.jpg" width=100% height=100%>
	<form name="loginform" action="<%=path%>/manager/login-check.jsp" method="post"
		onsubmit="return check(this)">
		<table width="350" border="0" cellspacing="1" cellpadding="0">
			<tr>
			<td colspan="2" align="center">
			<strong>博客系统管理员登陆</strong>
			</td>
			</tr>
			<tr>
			<td width="101" class="item">管理员：</td>
			<td width="246" class="inpit"><input name="AdminName" type="text" id="AdminName" size="30" /></td>
			</tr>
			<tr>
			<td class="item">登陆密码：</td>
			<td class="input"><input name="Password" type="password" id="Password" size="30"/></td>
			</tr>
			<tr>
			<td colspan="2" class="button"><input type="submit" values="登陆"/></td>
			</tr>

		</table>
	</form>
</body>
</html>
